package redis

import (
	"context"
	"github.com/redis/go-redis/v9"
)

type myRedis struct {
	Ctx    context.Context
	Client *redis.Client
}

type myRedisConfig struct {
	Host string
	Pass string
	DB   int
}

func Instance(ctx context.Context, config myRedisConfig) *myRedis {
	return &myRedis{
		Ctx: ctx,
		Client: redis.NewClient(&redis.Options{
			Addr:     config.Host,
			Password: config.Pass,
			DB:       0,
		}),
	}
}
